package com.bzhang.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：Bin.Z
 * @description：
 * @date ：2022/6/27 15:26
 */
@Configuration
public class MySelfRule {
    @Bean
    public IRule myRule(){
        return  new RoundRobinRule();
    }
}
